package com.linx.system.domain.bo;

import com.linx.system.domain.AppRoleMenu;
import com.linx.common.core.validate.AddGroup;
import com.linx.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import jakarta.validation.constraints.*;

/**
 * App角色和菜单关联业务对象 app_role_menu
 *
 * @author linx
 * @date 2024-12-24
 */
@Data
@AutoMapper(target = AppRoleMenu.class, reverseConvertGenerate = false)
public class AppRoleMenuBo {

    /**
     * 角色ID
     */
    @NotNull(message = "角色ID不能为空", groups = { EditGroup.class })
    private Long roleId;

    /**
     * 菜单ID
     */
    @NotNull(message = "菜单ID不能为空", groups = { EditGroup.class })
    private Long menuId;

    /**
     * 园区id
     */
    @NotNull(message = "园区id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long parkInfoId;
    /**
     * 服务key
     */
    @NotBlank(message = "服务key不能为空", groups = { AddGroup.class, EditGroup.class })
    private String serviceKey;

    /**
     * 服务名称
     */
    @NotBlank(message = "服务名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String serviceName;


}
